Print Digits before character in a mixed array