Added InputReader for reading inputqueries in stringformat.