added str_pattern.py