Detect error if "~" is followed immediately by white space.