As BrowserUk points out, the code you have posted does not contain the text "$twron". Combined with this modification, which removes the semi-colon issue, your posted code does not emit any of the posted errors. We can't help you debug if we can't replicate your issues. See How do I post a question effectively?.