Removing invalid character