swapped custom string functions with standard string.h functions