Currently, compendium items are retrieved based on an approximation of the actual name (adding spaces etc).
This does not account for edge cases like apostrophes, etc.
Try to improve this a bit. For example by using normalized strings (all lowercase, no special characters, no whitespace), which would need to iterate over all items in the compendium and comparing the name instead of using .getName(name).
Currently, compendium items are retrieved based on an approximation of the actual name (adding spaces etc). This does not account for edge cases like apostrophes, etc.
Try to improve this a bit. For example by using normalized strings (all lowercase, no special characters, no whitespace), which would need to iterate over all items in the compendium and comparing the name instead of using .getName(name).