Get rid of trailng characters from Windows