If you ever get into a situation where a string is received with some text that either shouldn't be there, or is in there incorrectly, here's a quick solution for that, use String.replace(): …
typescript
Javascript When to use “let” and when to use “var”
In many circumstances, let and var can seem to be used interchangeably. This, however, is not the case. Here's some great write-ups on stack overflow about the matter: https://stackoverflow.com/questions/762011/whats-the-difference-between-using-let-and-var …