Reading from file, removing unwanted spaces