fixed space handling in drawChar()