Both properties should be defined as string 

Both properties should be defined as string due to possible verbose 'undefined'  value from server