I think it only check for whitespace at the end.