check with strings.HasPrefix instead of slice, may cause panic if line not long enough