Trailing whitespaces remover from fromHTML method added