try {
// recreate the string without the # characters
final StringBuilder temp = new StringBuilder();
FormatTextParser parser = new FormatTextParserExtension(temp);
parser.format(line);
// create the attribute string including formating
final AttributedString aStyledText = new AttributedString(temp.toString());
parser = new FormatTextParser() {