StringLib with Test Cases