Change file seperator
 Added commons-io
Checked if string is not empty or null
closed input stream