These two functions (upper and lower) could be refactored to call the same function, but that seemed overkill for just two. If more string-only functions are added, it may be worthwhile.