gui: trim displayed string for string variables (spaces)