cap support

Suggestions and critics are welcome :)
Please use:

    if (name[0] != '\0')