Any idea how I could make undefined values by default a string '1'?