change single quote to double quote and fix a bug in pad