Fix SF bug #2895252 by changing the trailing space to a nul character.