Fixed small bug in GlobalSource Leave/Enter

Fixed string scope so it doesn't end object lifetime prematurely