replace white spaces on both where clause and on jquery value

replace white spaces on both where clause and on jquery value