Shouldn't splitExtensions() do the trimming to avoid duplicating that step for everything that may use it?
Hmm I think not... Trimming every extension at splitExtensions() is too heavy.
"Image:Example.txt. png .jpg" is a valid filename. I see no reason to trim to "Image:Example.txt.png.jpg" with exception of asthetic.
It could still trim the last one.
Meh, not a pressing issue.