Strip extra separators in show element command