Simpler parsing queryStr to numbers