fix space in hook ajax