Added removal of duplicate whitespace.