Making that history path cross plattform usable and removing trailing spaces