ch12: string codes