added support for spaces and tabs between title and json data