-- small refactor.
-- add empty data test.
-- remove extra spaces.
-- remove extra spaces.