Enter Text Function Fixed

Enter text function actually works now. Still need to test.