some command parsing micro-effic

Don't use regex, trying to avoid string splitting entirely where
possible.