Replace and remove whitespaces in strings - performant and sustainable

Replace and remove whitespaces in strings - performant and sustainable

There are many ways to remove spaces or other characters in a string - there are just very big differences in terms of performance and efficiency. Be