private static string GetReversedString(string input) { if (input == null) { return("Invalid"); } return(StringTransformers.ReverseString(input)); }
private static string GetStringStacked(string input) { var stackedString = StringTransformers.StackString(input); if (stackedString == null) { return("Invalid"); } return(stackedString); }
private static string GetStringNumericallyDoubled(string input) { var intValue = StringTransformers.StringToInt(input); if (intValue == null) { return("Invalid"); } return((intValue.Value * 2).ToString()); }
private static string GetTripledAndStacked(string input) { if (input == null) { return("Invalid"); } var intValue = StringTransformers.StringToInt(input); if (intValue == null) { return("Invalid"); } var tripledAndStackedString = GetStringStacked((intValue * 3).ToString()); if (tripledAndStackedString == null) { return("Invalid"); } return(tripledAndStackedString); }