Minor refactor to stringSpanner