Remove BMP-only restriction. Now works for both BMP and SMP.
Function to check if a char is whitespace