Added live input location filtering

Modified the function that checks the textbox, so that it correctly
filters the list from input. The code handles text sensitivity too.