TryParse Methods and  if else conditions