[subject line]
add comments of wild card matching greedy implementation
[Bug input/output]

[Fix]