Trim long names. Refs #311