triming space from profile before being saved in the database