longest_matching_prefix recurses on leftover input
Added a test for multiple occurences of a match in one string
Convert a string to a list of tokens