Fix #842 by trimming down the string of system names until it fits.