Using the correct function
Stripping new lines
Removed the wrong file openning