Basic String Manipulation functions written in C