refactoring double_strings.py