Removing the last unnecessary prefix