Merge pull request #556 from farismosman/master

[#1649] Advance search doesn't work if search value contains a special character followed by a space
[#1649] Faris: Added more validation to advanced-search.js

Merge branch 'master' of git://github.com/rapidftr/RapidFTR
Merge pull request #557 from farismosman/master

[#1649] Advance search doesn't work if search value contains a special character followed by a space