Αποστολή με SMS: A State Space Approach to Canonical Factorization with Applications