createHasIdFromString method returns null if given input is null or
empty.