Added optimized string manipulation functions from newlib