Move all text routines to text module