Better error handling of title