Updated tcode handler so it replaces whitespace with empty strings