This can be achieved using the FStrReplace function.  This function replaces all occurrences of a search string by a replace string, within a source string.  By specifying an empty string for the replace string we can remove characters or strings.  The example attached removes all space characters and carriage return line feed characters from a string.  See script attached at the bottom of the article.