Added NotNull action-based method for string