Migrated strip function from shell.hs
Ignore inputs that consist of just whitespace