add `len(str)` function.
add head and tail function.