Trim whitespace from bold and italic tags when parsing.