Function to check numbers format, do some modifications, fix minimum and maximum values, etc.