Use reliable string constants instead of string literals.
Added method parameters assertions.