String Pattern Matching In Python Programming