<br>&gt; I did some study on that chapter but I cannnot make it work,<br>&gt; This is what I have so  far :<br>&gt;<br>&gt; ;;String -&gt; String<br>&gt; ;; Get the first character of a string (s) if there is one. error otherwise.<br>
&gt; ;; given &quot;aaaa&quot; expected &quot;a&quot;<br>&gt; ;; given &quot;&quot; expected &quot;<br>&gt; (define (first-string s)<br>&gt;  (cond<br>&gt;    [(eq? s &quot;&quot;) (error &quot;first-string&quot; &quot;Empty string found&quot;)]    ;; check for a empty string.if so put a error message<br>
&gt;    [(and (string? s) (not(eq? s &quot;&quot;)))  (string-ith s 0)]              ;; if it&#39;s a non-empty string then do the trick.<br>&gt;    [(number? s) (error &quot;first-string&quot; &quot;No string found&quot;)]      ;; if it&#39;s a number then put a error message<br>
&gt;    [(boolean? s) (error &quot;first-string&quot; &quot;No string found&quot;)]     ;; if it&#39;s a boolean then put a error message<br>&gt;    [(image? s) (error &quot;first string&quot; &quot;No string found&quot;)]         ;; if it&#39;s a image put a error message<br>
&gt;    ))<br>&gt;<br>&gt; But when I do (first-string &quot;) then still DrRacket gives his own error message instead of the one I made.<br>&gt; Any tips are welcome here.<br><br><br>What is the exact content of the error message that DrRacket gives you?