Robert Strachan, 38, of no fixed abode was charged with attempting to engage in sexual communication with a child under 16.