Remove unused getStringLength method.