allow exit in command strings

This allows input like "1 2 exit".