getToken fixed (accepts multiple spaces, tabs, and newlines)