Removing the regex for osfamily as i am handling this in the case statement. I was doing 2 things that could be handled in 1