[fix bug 1039218] Remove spaces for IDs in edit profile page.