Moved common slice_char implementation into a private function
Made source code section markers more visible