Item identifier is working very well
Remove trimming function

and minor refactor to improve maintainability
Refactor into smaller functions
Refactor into smaller functions
Refactor into smaller functions
Refactor into smaller functions
Refactor into smaller functions
add TODO