Ok then try the following; Replace the original code; ----- case 'tag': $title[] = 'tag'; $title[] = $tag; break; ----- with this one; ----- case 'tag': $tag=str_replace('%20','-',$tag); $tag=str_replace('+','-',$tag); $title[] = $tag; break; ----- and also I noticed...