He gained fame for his starring role in 'The Fault in Our Stars.'