as a practice with string operations, I will be replicating cstring.h in cpp.