Add a delay for auto save
Use text api functions

do not keep duplicate source code
Move case converter methods to text api
Add tests for to_lower, to_upper