在横线上填入合适的介词。
1. He dedicated his life __________ helping the poor.2. He struggled to rid himself __________ his fears.