get rid of extra space in .tr