Remove '/' from both ends:
images/uploads
Remove '/' from the left of the string:
images/uploads/
Remove 's/' from the right of the string:
/images/upload
Replace 'images' with 'img':
/img/uploads/
As above but case-insensitive:
/img/uploads/
Repeat the string:
/images/uploads//images/uploads/