Added Function to the string library