Updates for beta 6 syntax changes

* Don't compare non-Optionals to nil
* Use .append() when adding Characters to Strings