How do you feel about chaining? dateStr = dateStr.replace(/-/g,'/').trim()

I can't decide between conciseness and readability