Added sizeof to get the length of a string.