Added comment to indicate that str itself was modified.