-- updated upk with additional check for string length