TRIM – DAX Guide

TRIM: Removes all spaces from a text string except for single spaces between words.
https://dax.guide/trim/