split the Sprite.text method into two methods - getter and setter since the getter requires a flag