modified if the strings to cope the input value