Sorry, I missed a {#1}:

    \bold{\getcharacter[1]{#1}}... #1 ...\bold{\getcharacter[\
stringlength{#1}{#1}]}

Best regards.