Added anyChar and groupBy and changed break to takeWhile