All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad () is His slave and Messenger.
You may donate any books that are free of objectionable or prohibited content. As for books that contain prohibited material, you are Islamically required to destroy them by burning, tearing them up, or by similar means.
As for your concern that some of these books contain expressions such as "Oh my God," this does not prevent them from being destroyed by burning, tearing, or similar methods.
Allah Knows best