hot fix for substring values in AnnotatedHtml