Replace "isSpace" with "unicode.IsSpace".
Compile the regexp for scanning symbols.
Check whether the charactor is a symbol or not.