starting query parser implementation
format string for an easier parsing