Can perform action in the middle of the text properly