Character detection on text blocks