skipws before checking end of parsing