removing slash on invalidargumentexception