[[ RefactorSyntax ]] Few fixes
[[ RefactorSyntax ]] Fixed text replacing with html/styled/rtf text