hack for chrome

chorme:delete \n failed
solution:when delete, call trim()