use getline in case of spaces. thanks @pepap . closes #7