How to remove whitespace after a full name in ETL

I have a name column with a full name: example Bob Dylan and am joining to another dataset by name. I'm having issues and believe its due to extra white space after the last name.

I tried using Replace text, regEx, \s, but that just removed all white space creating BobDylan.

Any thoughts here?

Tagged:

Best Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can use the TRIM function in a formula tile to strip leading and trailing whitespace off of a string.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • MichelleH
    MichelleH Coach
    Answer ✓

    @renee12345 The TRIM() function in the Formula tile will remove any extra spaces from text values, while preserving spaces between words. Try applying that formula to your dataset field before joining.

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    You can use the TRIM function in a formula tile to strip leading and trailing whitespace off of a string.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • MichelleH
    MichelleH Coach
    Answer ✓

    @renee12345 The TRIM() function in the Formula tile will remove any extra spaces from text values, while preserving spaces between words. Try applying that formula to your dataset field before joining.