Added startswith() and endswith() check to be sure we are going to strip only the right char "'"