Data source: http://rosettacode.org/wiki/Tokenize_a_string