Here is the situation, I want to remove some invalid bytes(varint length of the string) in the front of the string, At first, I tried to use drain method, but as the doc says:
Panics if the starting point or end point do not lie on a char boundary, or if they're out of bounds.
So I tried to use for loop to remove the prefix
    let mut input = String::from_utf8_lossy(&[128,2,49]).into_owned();
    let len = 2;
    for _ in 0..len {
        input.remove(0);
    }
Is there any way to be more efficient?