I got the same results swapping the operations, since it's basically "everything but space", the ordering is irrelevent. However, in the case of a unicode char, its faster the other way around. Ditto for "isPrintable" bellow.