matchWhile

inline fun matchWhile(check: (Char) -> Boolean): String