Math Function in N8N

to perform math function like
+91 9xxxxx is number we want to remove White Space between +91 and 9xxxxxx ,how this can be done and if we want to remove + only or if we want to count the character 10 from left or right and give the output is their any documentation

Hey @chandan988,

What about just using .replace(' ', '') on the end of the variable that will replace the space with nothing.

You can swap the space for a + if you wanted to remove that from the number. To only get the last 10 characters you use use .slice(-10).

Replace: JavaScript String replace() Method
Slice: JavaScript String slice() Method