Generate a correct python program to format a given string s so that the output pattern is as follows
Given String: "Hello--world--someone"
The output pattern is: "Hello world someone".
def format_string(s):
    string_arr = s.split("--")
    return ' '.join(string_arr)