Instead of allocating a List<char> with the four allowed whitespace chars and searching the list, just check if the char is one of the four values. Commit migrated from https://github.com/dotnet/corefx/commit/bcc05791de64688b681e01974a0ba8f7d75f2501