handle param space

entity query and search - trim; other - 400 error