Fix use of strchr()