was misunderstanding how the ~ operator was doing regular expression matching so corrected things to account for that (still don't think 'sw' ~ 's' should equate to true but whatev