The tr command is used here to delete the ' character from title.
title=$(echo $title | tr -d "'")
To output only alphanumeric chars, the -cd options will delete all characters which are not alphanumeric.
title=$(echo $title | tr -cd "[:alnum:]")