Strip leading & trailing spaces from id and title in rename-form