parseArguments

Splits an input string into tokens, respecting double and single quotes.