using nsstring size wrapper to avoid deprecation warning