handle single-quote character, juggle the conditionals