Correct, microoptimization. It will not hurt anyone and easy to read.
You can't modify strData as it's const ref.