strip spaces to remove error when searching