You can split the condition in two, one for starting with A
and one for the length.
You can use REPLACE
to remove the spaces and just check the length of the remaining characters.
SELECT *
FROM mytable
WHERE mydata LIKE 'A%'
AND LENGTH(REPLACE(mydata, ' ', '')) = 4;