Fixed stringLength calculation to take _shortcut into account