Fixed bug in string assertion that caused wrong ordering or parameters