Fixed string rotation parameter and added exception to warn users