I'm trying to implement a method that if the user inputs a series of zero like "00000" it should return "0"
Otherwise, if the user inputs for example "00009" or "90000", the input variable should remain unchanged.
Is there a simple solution for this problem?