Got both functions working and added if statement to handle proper endings, i.e., th, rd, nd, etc.