rename: check for empty strings (IDEADEV-41909)