null check for empty strings in HTML remover