Use StringBuilder to construct HTML formula string.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
Display CH4 not C1H4 for HTML.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>