Fixed app to allow more than one query at a time.
Fixed \t and \n characters not being stripped.