string String.ThreeDigitWords(int num) { amount_in_words = ""; if(num > 99) { single_words = {"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"}; first_digit_str = num.toString().substring(0,1); first_digit = first_digit_str.toLong(); amount_in_words = amount_in_words + single_words.get(first_digit - 1) + " hundred"; second_digit_str = num.toString().substring(1); second_digit = second_digit_str.toLong(); if(second_digit > 0) { amount_in_words = amount_in_words + " and " + thisapp.String.TwoDigitWords(second_digit); } } return amount_in_words; }