Put back in 'else' statement in string matching