Removing the trailing space from the password