adding if statement regex test