Fix a typo and string length