Per tokumei's suggestion use std::string.empty() and fix code style to use tabs and not spaces.