Changed the delimiter for Scanner to use OS-specific delimiter. HT:
Mesbah Mowlavi