Specify character of '.' and '*' matching in string