Case insensitive search and fix bug with '.' searching