There's some code duplication here. There must be recursive way to build up the string recursively by dividing by 10 until you hit something < 100