Fixed stringOperations for the case of String is empty