This is doing a bunch of work to get one string.  It's uglier but an if/elif ladder would also work.