Modify search method

- Trim input data before call searching data