more fixes for eliminating spaces as the first character in a command

now works with strings with lots of spaces at the front!