Propertly read strings to character arrays