Convert string value to integer by using the int.TryParse