Update starts/ends_with? to handle nil prefix