detectAllCharacters function

Apply detectCharacterType over an entire matrix