fixes #310 - cast details to nil if only contains whitespace