Mmmkay. I guess the nicest thing would be to allow multiple args for http://dlang.org/phobos/std_algorithm.html#skipOver. 

Still you may want to simplify by eliminating duplication. Read one char, define a variable containing "true" or "false" depending on the first character, then use only one loop. Sounds good?