I have a String input and want to check if the positive number and if not return default value without using try, catch and regex in pattern matching. Could you help me write th