an extension to the C string libraries