Use []rune for parsing, and 'ok' instead of 'end' boolean.