Remove another unnecessary call to toCharArray.