fixing strchr