added test for remove_prefix_and_suffix