modify build_string function to read string with single quote