takeWhile abstract method
Eagerly selects a leading sequence of characters.
Checks each character, from first to last, against
until one is found where
The characters up to, but not including, the first one
false are included in the result.
If no characters test
false, the entire sequence of character
Characters takeWhile(bool Function(String) test);