XCOMMONS-648: Provide API to double a char in a string