def validate_kmer_size(kmer_size: str) -> int:
    """
    Transform and validate input k-mer size
    :param kmer_size: Input k-mer size as string
    :return: K-mer size as int
    """
    value = int(kmer_size)
    assert 1 <= value <= 32
    return value