Change equals() to startsWith() when determining format based on 245$k: sometimes ends with a '.'