Remove condition of having '/' at the end.
small edit