html string manipulation utility module