It’s recommended you use calculations to check expressions instead of matching latex.
That said, use backticks instead of quotes and you’ll have less problems with extra spaces and such. For or
statements, you need to use entire conditions for each part of the or statement:
correct = this.latex = `-5p-20` or this.latex = `-5p+-20`