fixing issue #45: removing leading, trailing and multiple whitespaces.