This can throw an exception (NumberFormatException), it needs to be wrapped in try..catch. Fail cases: String is not a number, String is null.