remove whitespaces and change index names