Placed newline eating on statement level instead of block level to
prevent errors when assigning functions to variables. Also fixed single
quote strings.