Check if collection name is a string. Fixes #66