fixed bug in endsWithPrep and removed except/accept