Added non-breaking space support to Text widget