added spec for testing different functions based on strings