update text and space