Trimming trailing spaces to manage social history