changing the format of string returned by query builder