Just use LENGTH
function that returns integer representation of what ever field you pass in.
In your WHERE
clause just add AND LENGTH(GuitarName) = 6
just replace GuitarName
with your field that you need to check.
to get rid of extra white space just wrap it in TRIM
function
LENGTH(TRIM(GuitarName)) = 6
Bonus:
Just add HAVING
Clause after GROUP BY
SELECT GUITAR_NO,COUNT(INVENTORY)
FROM INVENTORY.GUITARS
WHERE guitars.guitar_type = 'FENDER'
and GUITARS.Guitar_no LIKE('4%')
and LENGTH(TRIM(guitars.guitar_type)) = 6
GROUP BY GUITAR_NO
HAVING COUNT(INVENTORY) > 3