Remove unnecessary string slicing

Because `"100%".to_i == "100%"[0...-1].to_i`.