ucfirst the query type