Add try{}catch{} to input