Safe String library for manipulating strings in c