Java Remove First Character From String To Int Python Code