prevent search error for space characters