Trying to fix the problem where the update fails if the userid has a space at the end.