Recreated string operations found in stdlib.