fixed whitespace stripping bug in blockCalculate()