Smarter stripping (make sure we're not in a string)