Fix an issue with string length