[Bug #8626] A new function added to define a function to sanitize string.