Adding some more character filtering to pathway builder