Replace part of string between two spaces
I have some psds which file names are in this format XX XXXX XX XXX. How I can, using javascript, replace the part of string which is between first and second space to get this kind of output string XX YYYY XX XXX?
