Added the if statement and fixed bugs

Brackets in strings made the parser very confused, should happen no
more.