added totitlecase function, remade ReadyQuery, added tests for ReadyQuery