get endpoints as string before trying to do string substitution