Adding getStyleByChar to ChatComponentFactory