Don't copy string when it's in the right position already
Fix stack underflow