WIKI-125 WIKI-333 Search should not take into account spaces at the end of a text inputted