changeing script to read a string vs. a file