added support for whitespaces in csv