Update comment to explain code correctly
Remove double append of pattern