Locomotor assignments wander to next line. Should check for text on the same line and not on the newline. 