Bug fix

Added the string variable again and change file input. Finished program.