Decode String into Integer in Java