fix input trim leaving highlight span behind