Should use char.IsWhiteSpace or similar. This isn't Unicode compliant.