works with invalid field
tests space reducer
separated space reducing function from client
separated method to src directory