removed unused getWhiteSpace() calls