Concatenating multiple '*' charaters in input pattern