Fixing problem with "Str object is not callable"