Use if (/ isin $left($1,1)) instead of if (/ isin $1-), it\'ll read the first character in the first word to check for / Otherwise, good job...