compress the print string to not waste space in repetitions