Extracting some more char array util and testing them.