add lower and upper case and search pattern functions

add lowercase
add uppercase
add search_pattern