Consume and return the next character if it equals ch.
Consume and return the next character if it matches pattern.
Consume and return the next character if predicate returns true.