Fixed the last function... still need to do strchr and strrchr
Added test cases. Currently segmentation fault for strchr