Text Parser - How do I replace a string with nothing (not even a space)?

I am trying to remove the phrase (MagSafe) from a string.

Example: I want to replace “iPhone 15 (MagSafe)” with “iPhone 15”

I am using text parser to remove “(MagSafe)” which is working fine, but it leaves a space between the phone model and the question mark at the end of the sentence the model is inserted in.

I have tried replacing it with four things: nothing, an empty string variable, an empty character from https://emptycharacter.com/, and a null variable.

When I replace with nothing, {{emptystring}} or empty character it leaves a space. When I replace with {{null}} it inserts the word “null” into the string.

What can I do to remove this space?

Welcome to the Make community!

{{emptystring}} is correct.

The issue is, there is also a space before the opening bracket that you have to remove.

You can add \s+ to the start of your pattern to match the space.

3 Likes