add possibility to return a default value in case the value to parse is null