Cleaned up the code of text