fixing string difference between mac and ubuntu problem