handle comments after character 0, trim whitespace centrally