return nothing on empty value
remove query from string for schema url