Code:
%s = $+(%s,$chr(%c))

This will not work if %c is 32 (the ASCII code for space). How to make it work for any character code?