The problem of nonlocality in string theory