Convert String to int

I am using a joystick controller that sends over a zigbee Terminal from a java application. So I am controlling a servo degree in a vehicle, so this degree is 65=<degree<=115, And I am buffering for 3 chars as if i received 2 digits Integer it would be 065 or if i received 3 digits Integer it would be 115. Then I directly write this value to the servo. I know I can do a condition to check for the first received digit, if it's zero then i would use the only last two values, But I am caring about complexity that's it. Any Ideas :smiley: ?