Update #head, #tail, #init, #last, and #reverse to work with strings.