Restrict the selection of strings to a certain scope.