Only split tags if the string wasn't empty