Update StringLibrary

Fixed some validation