Fix extension by returning all the extension inside one string separate by space