added the function calls to StringQuery.java