added strchr function