Add ws_builtin_cmd_substr implementation
Add static function get_strings_from_union