remove strange trailing character